import request from '@/utils/request'

// 查询商品规格明细列表
export function listSpecificationsDetail(query) {
  return request({
    url: '/mall/specificationsDetail/list',
    method: 'get',
    params: query
  })
}

// 查询商品规格明细详细
export function getSpecificationsDetail(goodsSpecificationsDetailId) {
  return request({
    url: '/mall/specificationsDetail/' + goodsSpecificationsDetailId,
    method: 'get'
  })
}

// 新增商品规格明细
export function addSpecificationsDetail(data) {
  return request({
    url: '/mall/specificationsDetail',
    method: 'post',
    data: data
  })
}

// 修改商品规格明细
export function updateSpecificationsDetail(data) {
  return request({
    url: '/mall/specificationsDetail',
    method: 'put',
    data: data
  })
}

// 删除商品规格明细
export function delSpecificationsDetail(goodsSpecificationsDetailId) {
  return request({
    url: '/mall/specificationsDetail/' + goodsSpecificationsDetailId,
    method: 'delete'
  })
}
